package com.medistat.services;

import org.springframework.stereotype.Service;

@Service("userContext")
public class UserContext {

	private Credentials credentials;

	public Credentials getCredentials() {
		return credentials;
	}

	public void setCredentials(Credentials credentials) {
		this.credentials = credentials;
	}
	
	public boolean isUserLogedIn() {
		return credentials!=null;
	}
}
